package com.wxy.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.wxy.domain.user;

@Mapper
public interface usermapper {
	@Select("select * from user where id=#{id}")
	public user findById(int id);
	@Update("update bank set money=money-100 where id=1")
	public void update1();
	@Update("update bank set money=money+100 where id=2")
	public void update2();
}
